package com.cn.zpark;

import javax.servlet.*;
import java.io.IOException;

/**
 * @PackageName: com.cn.zpark
 * @ClassName: MyServletDemo01
 * @Description:
 * @author: RZS
 * @date: 2022/4/6  10:57
 */
public class MyServletDemo01 implements Servlet {
    @Override
    public void init(ServletConfig config) throws ServletException {
        System.out.println("MyServletDemo01初始化成功");
    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
        System.out.println("MyServletDemo01被调用");
        System.err.println();
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {
        System.out.println("MyServletDemo01被销毁");
    }
}
